home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / Item Class / Item headers / CTypingTask.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  708 b   |  41 lines  |  [TEXT/KAHL]

  1. /*
  2.  * File:        CTypingTask.cp
  3.  * Created:        8/10/93
  4.  * Desc:        A task to accumulate characters as the they are typed.
  5.  *
  6.  * Superclass:    CTask.
  7.  * Uses:        CPane.
  8.  *
  9.  * Note:        
  10.  *
  11.  * Original Author:    W. Wesley Monroe
  12.  * Copyright © 1993 Animas Software Production. All rights reserved.
  13.  */
  14.  
  15.  
  16. #pragma once
  17.  
  18. #include <CTask.h>
  19.  
  20. class    CItemTable;
  21.  
  22. class CTypingTask : public CTask {
  23.  
  24.     CItemTable    *fTable;
  25.     EventRecord    *fMacEvent;
  26.     
  27.     Boolean        fStillTyping;
  28.     char         fAccumulatedChars[32];
  29.     long        fStartTicks;
  30.  
  31. public:
  32.  
  33.     void ITypingTask(CItemTable *itsTable, short taskIndex);
  34.     virtual void    Dispose(void);
  35.  
  36.     virtual Boolean CanStillType(void);
  37.     virtual void    CancelTyping(void);
  38.     
  39.     virtual void     DoTyping(char aChar);
  40. };
  41.